package org.itboys.product.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.mongodb.morphia.annotations.NotSaved;

/**
 * 商品分类模板同步过来的店铺模板
 */
@Entity(value = "ShopProductCategory", noClassnameStored = true)
public class ShopProductCategory extends BaseLongIdEntity{
	
	private static final long serialVersionUID = 6204315434139239199L;

	@Indexed
	private long sellerId; //商家 店家  卖家 对象的ID
	
	private Long categoryId;//分类ID
	
	private Long categoryParentId;//分类的父类ID
	
	@NotSaved
	private String categoryName;//分类名称

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Long getCategoryParentId() {
		return categoryParentId;
	}

	public void setCategoryParentId(Long categoryParentId) {
		this.categoryParentId = categoryParentId;
	}

	public long getSellerId() {
		return sellerId;
	}

	public void setSellerId(long sellerId) {
		this.sellerId = sellerId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
}
